VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmCxCEstadoCuentaPlanTeoricoSeguro 
   BackColor       =   &H00F7F5F3&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Tabla de seguros"
   ClientHeight    =   6180
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4860
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6180
   ScaleWidth      =   4860
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmbSeguro 
      BackColor       =   &H00F7F5F3&
      Caption         =   "&Cerrar"
      Height          =   330
      Left            =   45
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   5805
      Width           =   1095
   End
   Begin MSComctlLib.ListView lsvSeguro 
      Height          =   5730
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4830
      _ExtentX        =   8520
      _ExtentY        =   10107
      View            =   3
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   16250355
      Appearance      =   0
      NumItems        =   5
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Object.Width           =   0
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   1
         Text            =   "De"
         Object.Width           =   1958
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   2
         Text            =   "Hasta"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   3
         Text            =   "Titular"
         Object.Width           =   1614
      EndProperty
      BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   4
         Text            =   "Beneficiario"
         Object.Width           =   1958
      EndProperty
   End
End
Attribute VB_Name = "frmCxCEstadoCuentaPlanTeoricoSeguro"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmbSeguro_Click()
    Unload frmCxCEstadoCuentaPlanTeoricoSeguro
End Sub
Private Sub Form_Activate()
    gprocEspera False
End Sub
Private Sub Form_Load()
    Dim rstSeg As New ADODB.Recordset
    Dim Itm As ListItem
    Dim i%
    
    gprocEspera True
    gPROCEDIMIENTO_SQL gCnCXC, "cxcConsultaTablaSeguros", rstSeg
    With rstSeg
        While Not .EOF
            Set Itm = lsvSeguro.ListItems.Add(, , , , 0)
            Itm.SubItems(1) = Lee_NumConFtoReal(.Fields(0))
            Itm.SubItems(2) = Lee_NumConFtoReal(.Fields(1))
            Itm.SubItems(3) = Lee_NumConFtoReal(.Fields(2))
            Itm.SubItems(4) = Lee_NumConFtoReal(.Fields(3))
            
'            ValidateRect lsvSeguro.hWnd, 0&
'            If (i Mod 10) = 0 Then InvalidateRect lsvSeguro.hWnd, 0&, 0&
            DoEvents
            .MoveNext
        Wend
    End With
    gprocCerrarRecordset rstSeg
End Sub
Private Sub Form_Unload(Cancel As Integer)
    Set frmCxCEstadoCuentaPlanTeoricoSeguro = Nothing
End Sub
